package fjut.acm.coding.mapper;

import fjut.acm.coding.entity.ProblemInfo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ProblemInfoMapper extends Mapper<ProblemInfo> {

    Integer getMaxProblemId();

    /**
     * 查询用户未解决的题目列表
     *
     * @param username
     * @return
     */
    List<ProblemInfo> selectUnSolvedProblemsByUsername(@Param("username") String username);

}
